package com.unittec.zk.provider.auth.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.unittec.zk.provider.root.EntityRoot;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色权限表
 * </p>
 *
 * @Author scott
 * @since 2018-12-21
 */
@Data
@Accessors(chain = true)
@TableName("sys_role_permission")
@EqualsAndHashCode(callSuper = false)
public class SysRolePermission extends EntityRoot implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 角色id
     */
    private String roleId;

    /**
     * 权限id
     */
    private String permissionId;

    /**
     * 数据权限
     */
    private String dataRuleIds;

    public SysRolePermission() {}

    public SysRolePermission(String roleId, String permissionId) {
        this.roleId = roleId;
        this.permissionId = permissionId;
    }

}
